package com.duang.framework.core;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.duang.framework.config.SystemConfiguration;

public class InitListener implements ServletContextListener {

	public void contextInitialized(ServletContextEvent sce) {
		SystemConfiguration.init(sce.getServletContext());
		SystemConfiguration config = new SystemConfiguration();
		SystemConfiguration.setConfig(config);
		config.start();
		config.configure();
		config.end();
	}

	@Override
	public void contextDestroyed(ServletContextEvent sce) {

	}

}
